package com.scfw.db;

import java.util.List;

/**
 * Created by sehuaqi on 2017/7/2.
 */
public interface IAccountService {

    int add(Account account);

    int update(Account account);

    int delete(int id);

    Account findAccountById(int id);

    List<Account> findAccountList();

    /*** jpa ***/

    public List<Account> findAll();

    public Account findOne(int id);

    public String updateAccount(Account account);

    public String save(Account account);

    /** mybatis ***/

    public List<Account> mFindAll();

    public Account mFindOne(int id);

    public Account mxmlFindOne(int id);

    public int mUpdateAccount(Account account);

    public int mSave(Account account);

    int transfer(double money);
}
